import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-two-data',
    templateUrl: './two-data.component.html',
    styleUrls: ['./two-data.component.less']
})
export class TwoDataComponent implements OnInit {
    msg = "";
    info = "";
    radioData = "";
    radioData1 = undefined;
    radioData2 = "";
    sex = "";
    checkData1 = "";
    checkData2 = [];
    checkData3 = "";
    skills = {
        html:false,
        js:false,
        vue:false,
        angular:false
    }
    JSON = JSON;
    selectData = "";

    fileData;
    fileSrc;

    constructor() { }

    ngOnInit() {
    }

    getKeys(obj){
        return Object.keys(obj);
    }
    changeFile(e){
        this.fileData = e.target.files[0];
        let reader = new FileReader();
        reader.readAsDataURL(this.fileData);
        reader.onload = ()=>{
            this.fileSrc = reader.result;
        }
    }
}
